﻿namespace Jim.OA;

/// <summary>
/// 获取流程相关资源
/// </summary>
[Sdk("/api/workflow/paService/getRequestResources", description: "获取流程相关资源", "get")]
public class OAGetRequestResourceInput : OAUserRequest<OAGetRequestResourceOutput>, ISdkCustomDic
{
    [Required(ErrorMessage = "流程ID不能为空")]
    public string RequestId { get; set; }

    public SdkDictionary Dic()
    {
        SdkDictionary dic = new SdkDictionary();
        dic.Add("requestId", RequestId);
        return dic;
    }
}


public class OAGetRequestResourceOutput : SdkResponse<List<OAWorkFlowResource>> { }

public class OAWorkFlowResource { 
    public string createdate { get; set; }
    public string createrName { get; set; }
    public int createrid { get; set; }
    public string createtime { get; set; }
    public int id { get; set; }
    public string name { get; set; }
    public string downloadUrl { get; set; }
    public int type { get; set; }
}
